
name := "Jooq-Asyn-Router"

version := "1.0"

organization := "com.galudisu"

libraryDependencies ++= {
  val akkaVersion = "2.4.17"
  val akkaHttpVersion = "10.0.6"
  val log4j2Version = "2.6.1"
  val scalaLogging = "3.5.0"
  Seq(
    "com.typesafe.akka"           %% "akka-actor"               % akkaVersion withSources(),
    "org.scalatest"               %% "scalatest"                % "3.0.0"         % "test" withSources(),
    "org.fusesource"              % "sigar"                     % "1.6.4",

    // log4j2
    "com.typesafe.scala-logging"  %% "scala-logging"            % scalaLogging,
    "org.apache.logging.log4j"    % "log4j-api"                 % log4j2Version,
    "org.apache.logging.log4j"    % "log4j-core"                % log4j2Version,
    "org.apache.logging.log4j"    % "log4j-slf4j-impl"          % log4j2Version,

    // jooq
    "mysql"                       % "mysql-connector-java"      % "6.0.6",
    "org.jooq"                    % "jooq"                      % "3.9.2",
    "org.jooq"                    % "jooq-scala"                % "3.9.2",
    "org.jooq"                    % "jooq-codegen"              % "3.9.2"

  )
}

enablePlugins(JooqCodegen)
jooqVersion := "3.9.2"
jooqCodegenConfigFile := Some(file("jooq-codegen.xml"))


// Assembly settings
mainClass in Global := Some("com.galudisu.Main")

assemblyJarName in assembly := "akka-jooq-asyn.jar"
